import axios from '@/libs/api.request'

export const getFlyBeanList = data => axios.request({ // 列表
  url: '/marketing/activity/ticket/list',
  method: 'post',
  data
})

export const delFlyBean = data => axios.request({ // 删除
  url: '/marketing/activity/ticket/delete',
  method: 'post',
  data
})

export const endFlyBean = data => axios.request({ // 立即结束
  url: '/marketing/activity/ticket/end',
  method: 'post',
  data
})

export const FlyBeanDetail = data => axios.request({ // 详情
  url: '/marketing/activity/ticket/query',
  method: 'post',
  data
})

export const editFlyBean = data => axios.request({ // 创建
  url: '/marketing/activity/ticket/save',
  method: 'post',
  data
})
